<%-- 
    Document   : kumpulan
    Created on : Nov 5, 2012, 10:11:53 AM
    Author     : faizal.azlee
--%>

<%--<%@page contentType="text/html" pageEncoding="windows-1252"%>--%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Jawab Tawaran Tunai Haji</title>
     <script type="text/javascript">
            $(document).ready(function(){
                $('form').submit( function () {
                    return formValidation();
            });
            
            var val = ${actionBean.alasantolak};
            doSelect(val);                
            
            function doSelect(val) {
                 if (val == 'R') { 
                    $('.lain').show();
                } else {
                    $('.lain').hide();
                }                
            }
           </script>    
    </head>
    <body>
    <s:messages/>
    <s:errors/> 
        <br/>
        <s:form beanclass="th.stripes.action.HajiResponseActionBean" class="niceform">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <p>
                    <label>Nama :</label>
                        ${actionBean.nama}  
                </p>
                <p>
                    <label>No. Akaun TH :</label>
                        ${actionBean.noAkaun}
                </p>
                <p>
                    <label>No. KP Semasa :</label>
                        ${actionBean.noKp}
                </p>
                <p>
                    Anda Telah memilih untuk menolak tawaran ini. Sila isikan maklumat di bawah
                </p>
                <p>
                    <label>Alasan menolak tawaran :</label>
                    <s:select name="alasantolak" onselect="doSelect(this.value)">
                                <s:option value="A">Hamil/Isteri Hamil</s:option>
                                <s:option value="B">Kesihatan</s:option>
                                <s:option value="C">Kematian</s:option>
                                <s:option value="D">Kemalangan</s:option>
                                <s:option value="E">Tiada Mahram</s:option>
                                <s:option value="R">Lain-lain</s:option>
                    </s:select>
                </p>
                <p>
                    <label>>Lain-lain(Nyatakan) :</label>
                    <s:textarea name="alasanlain"  id="alasanlain"></s:textarea>
                </p>
                <p>
                    <label>Tahun pilihan baru</label>
                    <s:select name="tahunpilihanbaru" class="required" id="tahunpilihanbaru">
                                <s:option value="1433">1433</s:option>
                                <s:option value="1434">1434</s:option>
                                <s:option value="1435">1435</s:option>
                    </s:select>                                                    
                </p>                    
                <div align="center">
                        <s:button name="showJawabTawaranTunaiHajiDetail" value="Kembali"/>
                        <s:submit name="submitTolakPendaftaran"  value="Hantar"/>                                                
                </div>                                                  
            </div>
        </s:form>
    </body>
</html>
